import { createContext, useContext } from "react";
import collapseStore from "./moduls/collpaseStore";

class RootStore{
  constructor(){
    this.collapseStore = collapseStore
  }
}

const root = new RootStore()

const context = createContext(root)
const useStore = ()=>useContext(context)

export { useStore };
